package com.ljj.controller;

import com.ljj.pojo.Orders;
import com.ljj.service.OrdersService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName OrdersController
 * @Description TODO
 * @Author Administrator
 * @Date 2022/3/2 13:20
 * @Version 1.0
 */
@RestController
@RequestMapping("/orders")
public class OrdersController {

    @Autowired
    private OrdersService ordersService;

    @GetMapping("/queryOrders")
    public List<Orders> queryOrders(){
        return ordersService.queryOrdersAll();
    }
}
